#! /bin/bash
sh stop1.sh

CLASSPATH=.
LIBDIR=`ls lib/*.jar`
for jar in $LIBDIR
  do
	CLASSPATH=$CLASSPATH:$jar
  done
JAVA_OPTS="\
-Xmx4g \
-Xms4g \
-Xmn2g \
-XX:SurvivorRatio=8 \
-XX:MetaspaceSize=256m \
-XX:MaxMetaspaceSize=512m \
-XX:+UseParallelGC \
-XX:ParallelGCThreads=4 \
-XX:+UseParallelOldGC \
-XX:+UseAdaptiveSizePolicy \
-XX:+PrintGCDetails \
-XX:+PrintTenuringDistribution \
-XX:+PrintGCTimeStamps \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/ \
-Xloggc:/gc.log \
-XX:+UseGCLogFileRotation \
-XX:NumberOfGCLogFiles=5 \
-XX:GCLogFileSize=10M  "
java ${JAVA_OPTS} -cp $CLASSPATH com.chinaunicom.emergency.JTGatewayApplication --server.port=8887 JTGateway1&


